package com.itheima.domain.cargo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Finance implements Serializable {
    private String financeId;

    private String invoiceId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputDate;

    private String inputBy;

    private Integer state;

    private String createBy;

    private String createDept;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private String financeNum;

    private Integer financeAmo;

    private String packinglistid;

    private String portOfLoading;

    private String portOfDischarge;

    private String consignee;

    private static final long serialVersionUID = 1L;

    public String getFinanceId() {
        return financeId;
    }

    public void setFinanceId(String financeId) {
        this.financeId = financeId == null ? null : financeId.trim();
    }

    public String getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId == null ? null : invoiceId.trim();
    }

    public Date getInputDate() {
        return inputDate;
    }

    public void setInputDate(Date inputDate) {
        this.inputDate = inputDate;
    }

    public String getInputBy() {
        return inputBy;
    }

    public void setInputBy(String inputBy) {
        this.inputBy = inputBy == null ? null : inputBy.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public String getCreateDept() {
        return createDept;
    }

    public void setCreateDept(String createDept) {
        this.createDept = createDept == null ? null : createDept.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getFinanceNum() {
        return financeNum;
    }

    public void setFinanceNum(String financeNum) {
        this.financeNum = financeNum == null ? null : financeNum.trim();
    }

    public Integer getFinanceAmo() {
        return financeAmo;
    }

    public void setFinanceAmo(Integer financeAmo) {
        this.financeAmo = financeAmo;
    }

    public String getPackinglistid() {
        return packinglistid;
    }

    public void setPackinglistid(String packinglistid) {
        this.packinglistid = packinglistid == null ? null : packinglistid.trim();
    }

    public String getPortOfLoading() {
        return portOfLoading;
    }

    public void setPortOfLoading(String portOfLoading) {
        this.portOfLoading = portOfLoading == null ? null : portOfLoading.trim();
    }

    public String getPortOfDischarge() {
        return portOfDischarge;
    }

    public void setPortOfDischarge(String portOfDischarge) {
        this.portOfDischarge = portOfDischarge == null ? null : portOfDischarge.trim();
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee == null ? null : consignee.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", financeId=").append(financeId);
        sb.append(", invoiceId=").append(invoiceId);
        sb.append(", inputDate=").append(inputDate);
        sb.append(", inputBy=").append(inputBy);
        sb.append(", state=").append(state);
        sb.append(", createBy=").append(createBy);
        sb.append(", createDept=").append(createDept);
        sb.append(", createTime=").append(createTime);
        sb.append(", financeNum=").append(financeNum);
        sb.append(", financeAmo=").append(financeAmo);
        sb.append(", packinglistid=").append(packinglistid);
        sb.append(", portOfLoading=").append(portOfLoading);
        sb.append(", portOfDischarge=").append(portOfDischarge);
        sb.append(", consignee=").append(consignee);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}